﻿namespace CSharpPro._1030;


public class Student
{
    private int id;
    private string name;
    private int age;
    private double score;
    
    // 属性
    public int Id
    {
        get => id;
        set => id = value;
    }

    public string Name
    {
        get => name;
        set => name = value ?? throw new ArgumentNullException(nameof(value));
    }

    public int Age
    {
        get => age;
        set => age = value;
    }

    public double Score
    {
        get => score;
        set => score = value;
    }
}//